package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamClassMapper;
import com.ruoyi.system.domain.ExamClass;
import com.ruoyi.system.service.IExamClassService;
import com.ruoyi.common.core.text.Convert;

/**
 * 班级Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-30
 */
@Service
public class ExamClassServiceImpl implements IExamClassService 
{
    @Autowired
    private ExamClassMapper examClassMapper;

    /**
     * 查询班级
     * 
     * @param id 班级主键
     * @return 班级
     */
    @Override
    public ExamClass selectExamClassById(Long id)
    {
        return examClassMapper.selectExamClassById(id);
    }

    /**
     * 查询班级列表
     * 
     * @param examClass 班级
     * @return 班级
     */
    @Override
    public List<ExamClass> selectExamClassList(ExamClass examClass)
    {
        return examClassMapper.selectExamClassList(examClass);
    }

    /**
     * 新增班级
     * 
     * @param examClass 班级
     * @return 结果
     */
    @Override
    public int insertExamClass(ExamClass examClass)
    {
        return examClassMapper.insertExamClass(examClass);
    }

    /**
     * 修改班级
     * 
     * @param examClass 班级
     * @return 结果
     */
    @Override
    public int updateExamClass(ExamClass examClass)
    {
        return examClassMapper.updateExamClass(examClass);
    }

    /**
     * 批量删除班级
     * 
     * @param ids 需要删除的班级主键
     * @return 结果
     */
    @Override
    public int deleteExamClassByIds(String ids)
    {
        return examClassMapper.deleteExamClassByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除班级信息
     * 
     * @param id 班级主键
     * @return 结果
     */
    @Override
    public int deleteExamClassById(Long id)
    {
        return examClassMapper.deleteExamClassById(id);
    }
}
